let _pc = {
	system() {
		uni.getSystemInfo({
			success: function(res) {
				console.log('小程序仅支持在手机端使用',res);
				
				if (res.osName == 'windows') {
					// uni.showToast({
					// 	title: '小程序仅支持在手机端使用，请在手机端打开。',
					// 	icon: 'none'
					// });
					
					// uni.redirectTo({
					// 	url: '/pages/about/about?pc=133'
					// });
					//wx.hideToast();
				}
			}
		});
	},
	tab(){
	
		return [{
			"pagePath": "/pages/bookshelf/index",
			"iconPath": "/static/images/bookshelf.png",
			"selectedIconPath": "/static/images/bookshelf_s.png",
			"text": "书架",
			"visible":true
		}, {
			"pagePath": "/pages/book_mall/index",
			"iconPath": "/static/images/so.png",
			"selectedIconPath": "/static/images/so_s.png",
			"text": "搜索",
			"visible":true
		}, {
			"pagePath": "/pages/index/index",
			"iconPath": "/static/images/so.png",
			"selectedIconPath": "/static/images/so_s.png",
			"text": "发现",
			"visible":true
		}, {
			"pagePath": "/pages/user/my",
			"iconPath": "/static/images/user.png",
			"selectedIconPath": "/static/images/user_s.png",
			"text": "我的",
			"visible":true
		}]

		
	}
}

export default _pc;